/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.shaitu.wakeremote4j;

import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

/**
 *
 * @author harry
 */
public class Startup {

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
                long begin = System.currentTimeMillis();
                //Locale.setDefault(Locale.ENGLISH);
                //initial look and feel
                javax.swing.JFrame.setDefaultLookAndFeelDecorated(true);
                javax.swing.JDialog.setDefaultLookAndFeelDecorated(true);
                try {
                    UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
                    Logger.getLogger(Startup.class.getName()).info("App startup cost time:" + (System.currentTimeMillis() - begin) + "ms");
                } catch (Exception ex) {
                    Logger.getLogger(Startup.class.getName()).log(Level.SEVERE, null, ex);
                }
                new WakeRemoteGUI().setVisible(true);
            }
        });
    }
}
